#include "stdafx.h"
#include "primitive_datatypes.h"
#include "CPUInfo.h"
#include "Enums.h"
#include "Desc.h"
#include "RenderEngine.h"
#include "GameEngine.h"

int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,_In_ LPTSTR lpCmdLine,_In_ int nCmdShow){

	CGameEngine ge;
	GameEngineInitDesc geid;
	CCPUInfo id;

	id.GetInfoASM();
	
	if(!id.OSSupportsSSE())
		return -1;

	String AppName = "WT Engine MK2 V0.1  ";
	AppName += id.GetShortString();
	geid.AppName		= AppName;
	geid.FullScreen		= false;
	geid.Width			= 800;
	geid.Height			= 600;
	geid.RenderEngine	= ERenderEngine::D3D9;

	ge.Init(geid);
	return ge.Run();
}
